import httpInstance from '@/utils/https.js'

// 衣服展示
export const clothesListApi = () => {
    return httpInstance({
        url: '/clothes/list',
        method: 'GET'
    })
}

// 衣服删除
export const clothesDelApi = (params) => {
    return httpInstance({
        url: '/clothes/del',
        method: 'DELETE',
        params
    })
}



export const clothesBgApi = () => {
    return httpInstance({
        url: '/clothes/bgImg',
        method: 'get'
    })
}

export const clothesDelDjangoApi = (imgId) => {
    return httpInstance({
        url: `http://localhost:6999/change/delimg/${imgId}`,
        method: 'get'
    })
}


export const clothesChangeClothesApi = (data) => {
    return httpInstance({
        url: `http://localhost:6999/change/changeCloth`,
        method: 'POST',
        data
    })
}


export const clothesRecommendedApi = () => {
    return httpInstance({
        url: `/clothes/recommended`,
        method: 'GET'
    })
}